﻿namespace DataScripter.Excel.Formulas
{
	internal class Brackets : Formula
	{
		private readonly Formula _formula;

		public Brackets(Formula formula)
		{
			_formula = formula;
		}

		#region Overrides of Formula

		public override string Resolve(ICell current)
		{
			return string.Format("({0})", _formula.Resolve(current));
		}

		#endregion

		public override string ToString()
		{
			return "(" + _formula + ")";
		}
	}
}